package com.guigu.qingcheng.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

@Configuration
public class OssConfig {

    @Bean
    @Scope("prototype")
    public static OSS ossClient() {
        return new OSSClientBuilder().build("oss-cn-beijing.aliyuncs.com", "LTAI4FyTmiy9Ssw6oQazFkmi", "aChD3EWO23JAhCb4yr874OwXbFpNIu");
    }
}
